<script>
	export default {

		globalData: {
			cid: 0,
			baseUrl: 'http://192.168.124.46:8082'
		},
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.warn("测试")
			console.log('App Launch')
			console.warn(1)
			if (uni.getStorageSync('authentication')) {
				this.$options.globalData.cid = uni.getStorageSync('authentication')
			}

		},

		onShow: function() {
			console.log('App Show')
			console.warn(2)

		},
		onHide: function() {
			console.log('App Hide')
			console.warn(3)
		},
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';

	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
